﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class EmailSyemModel
    {
        public int Id { get; set; }
        public string Email { get; set; }
        public string Pass { get; set; }
        public Nullable<System.DateTime> DateCreate { get; set; }
        public Nullable<bool> Status { get; set; }
        public Nullable<bool> type { get; set; }

        public static void MapFrom(EmailSyemModel mdoel, ref EmailSystem entity)
        {
            entity.Id = mdoel.Id;
            entity.Email = mdoel.Email;
            entity.Pass = mdoel.Pass;
            entity.DateCreate = mdoel.DateCreate;
            entity.Status = mdoel.Status;
            entity.type = mdoel.type;
        }

        public static void MapFrom(EmailSystem entity, ref EmailSyemModel mdoel)
        {
            mdoel.Id = entity.Id;
            mdoel.Email = entity.Email;
            mdoel.Pass = entity.Pass;
            mdoel.DateCreate = entity.DateCreate;
            mdoel.Status = entity.Status;
            mdoel.type = entity.type;
        }
    }
}